var knex = require('../../util/knex')

const AdvertiServices = {
    getList:async ()=>{
        const data = await knex('adverti').select().then(result => {
            // console.log('数据库：', result)
            return result
        }).catch(error => {
            console.log('error:',error);
        })
        return data
    }
}

module.exports = AdvertiServices